![]() |
CountComponentInstances |
||||
Header: | Components.h | Carbon status: | Supported | |
Determines the number of open connections being managed by a specified component.
SInt32 CountComponentInstances ( Component aComponent );
The component for which you want a count of open connections. You can use a component instance here, but you must coerce the data type appropriately.
The number of open connections for the specified component.
This function can be useful if you want to restrict the number of connections for your component or if your component needs to perform special processing based on the number of open connections.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)